import request from '@/api/request'
/**
 * 
 * @param 登录 
 */
export function login (params) {
    return request({
      url: `/token/login`,
      method: 'post',
      data: params
    })
}

/**
 * 
 * @param 注册 
 */
export function register (params) {
  return request({
    url: `/login/register`,
    method: 'post',
    data: params
  })
}

/**
 * 
 * @param 登录 
 */
export function info () {
  return request({
    url: `/login/info`,
    method: 'get'
  })
}

